#pragma once

#include<vulkan/vulkan.h>

const char* GetEnumString_VkResult(VkResult value) {
    if (value == VkResult::VK_SUCCESS)return "VK_SUCCESS";
    else if (value == VkResult::VK_NOT_READY)return "VK_NOT_READY";
    else if (value == VkResult::VK_TIMEOUT)return "VK_TIMEOUT";
    else if (value == VkResult::VK_EVENT_SET)return "VK_EVENT_SET";
    else if (value == VkResult::VK_EVENT_RESET)return "VK_EVENT_RESET";
    else if (value == VkResult::VK_INCOMPLETE)return "VK_INCOMPLETE";
    else if (value == VkResult::VK_SUBOPTIMAL_KHR)return "VK_SUBOPTIMAL_KHR";
    else if (value == VkResult::VK_THREAD_IDLE_KHR)return "VK_THREAD_IDLE_KHR";
    else if (value == VkResult::VK_THREAD_DONE_KHR)return "VK_THREAD_DONE_KHR";
    else if (value == VkResult::VK_OPERATION_DEFERRED_KHR)return "VK_OPERATION_DEFERRED_KHR";
    else if (value == VkResult::VK_OPERATION_NOT_DEFERRED_KHR)return "VK_OPERATION_NOT_DEFERRED_KHR";
    else if (value == VkResult::VK_PIPELINE_COMPILE_REQUIRED_EXT)return "VK_PIPELINE_COMPILE_REQUIRED_EXT";
    else if (value == VkResult::VK_ERROR_PIPELINE_COMPILE_REQUIRED_EXT)return "VK_ERROR_PIPELINE_COMPILE_REQUIRED_EXT";
    else if (value == VkResult::VK_RESULT_MAX_ENUM)return "VK_RESULT_MAX_ENUM";
    else if (value == VkResult::VK_ERROR_INVALID_OPAQUE_CAPTURE_ADDRESS)return "VK_ERROR_INVALID_OPAQUE_CAPTURE_ADDRESS";
    else if (value == VkResult::VK_ERROR_INVALID_OPAQUE_CAPTURE_ADDRESS_KHR)return "VK_ERROR_INVALID_OPAQUE_CAPTURE_ADDRESS_KHR";
    else if (value == VkResult::VK_ERROR_INVALID_DEVICE_ADDRESS_EXT)return "VK_ERROR_INVALID_DEVICE_ADDRESS_EXT";
    else if (value == VkResult::VK_ERROR_FULL_SCREEN_EXCLUSIVE_MODE_LOST_EXT)return "VK_ERROR_FULL_SCREEN_EXCLUSIVE_MODE_LOST_EXT";
    else if (value == VkResult::VK_ERROR_NOT_PERMITTED_EXT)return "VK_ERROR_NOT_PERMITTED_EXT";
    else if (value == VkResult::VK_ERROR_FRAGMENTATION_EXT)return "VK_ERROR_FRAGMENTATION_EXT";
    else if (value == VkResult::VK_ERROR_FRAGMENTATION)return "VK_ERROR_FRAGMENTATION";
    else if (value == VkResult::VK_ERROR_INVALID_DRM_FORMAT_MODIFIER_PLANE_LAYOUT_EXT)return "VK_ERROR_INVALID_DRM_FORMAT_MODIFIER_PLANE_LAYOUT_EXT";
//    else if (value == VkResult::VK_ERROR_INCOMPATIBLE_VERSION_KHR)return "VK_ERROR_INCOMPATIBLE_VERSION_KHR";
    else if (value == VkResult::VK_ERROR_INVALID_EXTERNAL_HANDLE)return "VK_ERROR_INVALID_EXTERNAL_HANDLE";
    else if (value == VkResult::VK_ERROR_INVALID_EXTERNAL_HANDLE_KHR)return "VK_ERROR_INVALID_EXTERNAL_HANDLE_KHR";
    else if (value == VkResult::VK_ERROR_OUT_OF_POOL_MEMORY)return "VK_ERROR_OUT_OF_POOL_MEMORY";
    else if (value == VkResult::VK_ERROR_OUT_OF_POOL_MEMORY_KHR)return "VK_ERROR_OUT_OF_POOL_MEMORY_KHR";
    else if (value == VkResult::VK_ERROR_INVALID_SHADER_NV)return "VK_ERROR_INVALID_SHADER_NV";
    else if (value == VkResult::VK_ERROR_VALIDATION_FAILED_EXT)return "VK_ERROR_VALIDATION_FAILED_EXT";
    else if (value == VkResult::VK_ERROR_INCOMPATIBLE_DISPLAY_KHR)return "VK_ERROR_INCOMPATIBLE_DISPLAY_KHR";
    else if (value == VkResult::VK_ERROR_OUT_OF_DATE_KHR)return "VK_ERROR_OUT_OF_DATE_KHR";
    else if (value == VkResult::VK_ERROR_NATIVE_WINDOW_IN_USE_KHR)return "VK_ERROR_NATIVE_WINDOW_IN_USE_KHR";
    else if (value == VkResult::VK_ERROR_SURFACE_LOST_KHR)return "VK_ERROR_SURFACE_LOST_KHR";
    else if (value == VkResult::VK_ERROR_UNKNOWN)return "VK_ERROR_UNKNOWN";
    else if (value == VkResult::VK_ERROR_FRAGMENTED_POOL)return "VK_ERROR_FRAGMENTED_POOL";
    else if (value == VkResult::VK_ERROR_FORMAT_NOT_SUPPORTED)return "VK_ERROR_FORMAT_NOT_SUPPORTED";
    else if (value == VkResult::VK_ERROR_TOO_MANY_OBJECTS)return "VK_ERROR_TOO_MANY_OBJECTS";
    else if (value == VkResult::VK_ERROR_INCOMPATIBLE_DRIVER)return "VK_ERROR_INCOMPATIBLE_DRIVER";
    else if (value == VkResult::VK_ERROR_FEATURE_NOT_PRESENT)return "VK_ERROR_FEATURE_NOT_PRESENT";
    else if (value == VkResult::VK_ERROR_EXTENSION_NOT_PRESENT)return "VK_ERROR_EXTENSION_NOT_PRESENT";
    else if (value == VkResult::VK_ERROR_LAYER_NOT_PRESENT)return "VK_ERROR_LAYER_NOT_PRESENT";
    else if (value == VkResult::VK_ERROR_MEMORY_MAP_FAILED)return "VK_ERROR_MEMORY_MAP_FAILED";
    else if (value == VkResult::VK_ERROR_DEVICE_LOST)return "VK_ERROR_DEVICE_LOST";
    else if (value == VkResult::VK_ERROR_INITIALIZATION_FAILED)return "VK_ERROR_INITIALIZATION_FAILED";
    else if (value == VkResult::VK_ERROR_OUT_OF_DEVICE_MEMORY)return "VK_ERROR_OUT_OF_DEVICE_MEMORY";
    else if (value == VkResult::VK_ERROR_OUT_OF_HOST_MEMORY)return "VK_ERROR_OUT_OF_HOST_MEMORY";
    else return "";
}
